<!DOCTYPE html>
<html lang="en">
<!--header-->
<include file="Public:header"/>
<!--header-->
<section id="main-content">
    <section class="wrapper">
        <h3><i class="fa fa-angle-right"></i> 修改家政预约信息</h3>

        <!-- BASIC FORM ELELEMNTS -->
        <div class="row mt">
            <div class="col-lg-12">
                <div class="form-panel">
                    <h4 class="mb"><i class="fa fa-angle-right"></i> 家政预约信息
                        <a class="btn btn-theme btn-default" href="{:U('homes_yue')}">返回</a>
                    </h4>
                    <form id="admin" class="form-horizontal style-form" method="post" action="{:U('add_yue')}"  enctype="multipart/form-data">

                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">家政类别名称</label>
                            <div class="col-sm-10">
                                {$list.type_name}
                            </div>
                        </div>
                        <!--预约人姓名，预约人电话，预约人地址，预约信息，家政人员姓名，家政人员电话，管理员备注内容，状态-->
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">预约人姓名</label>
                            <div class="col-sm-10">
                                {$list.name}
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">预约人电话</label>
                            <div class="col-sm-10">
                                {$list.phone}
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">预约地址</label>
                            <div class="col-sm-10">
                                {$list.address}
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">预约信息</label>
                            <div class="col-sm-10">
                                {$list.content}
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">家政人员信息</label>
                            <div class="col-sm-10">
                                姓名：{$list.homes_name} 电话：{$list.homes_phone} 展示价位：{$list.moneys}
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">成交价格</label>
                            <div class="col-sm-10">
                                {$list.cheng_moneys}
                            </div>
                        </div>
                        <!--<div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">预约状态</label>
                            <div class="col-sm-10">
                                <select id="type" name="status" class="form-control">
                                    <option value="1" <if condition="$list['status'] == 1">selected </if>>未处理（预约中）</option>
                                    <option value="2" <if condition="$list['status'] == 2">selected</if>>预约成功（工作中）</option>
                                    <option value="3" <if condition="$list['status'] == 3">selected</if>>工作完成</option>
                                    &lt;!&ndash;<option value="4" <if condition="$list['status'] == 4">selected</if>>预约失败</option>&ndash;&gt;
                                </select>
                            </div>
                        </div>-->
                        <div id="contents" class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">管理员备注</label>
                            <div class="col-sm-10">
                                <textarea name="bei_zhu" class="input">{$list.bei_zhu}</textarea>
                            </div>
                        </div>
                        <input type="hidden" id="che" name="id" value="{$list.id}">
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label"></label>
                            <div class="col-sm-10">
                                <input  type="submit"  class="btn btn-theme" value="保存" style="width: 150px;margin-left: 60px">
                                <input  type="reset" class="btn btn-warning" value="重置" style="width: 150px">
                            </div>
                        </div>
                    </form>
                </div>
            </div><!-- col-lg-12-->
        </div><!-- /row -->
    </section>
</section>
<!--footer-->
<include file="Public:footer"/>

<script type="text/javascript" src="__PUBLIC__/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="__PUBLIC__/kindeditor/lang/zh_CN.js"></script>
<script>
    //编辑器
    var editor;
    KindEditor.ready(function(e){
        editor = e.create("[name=bei_zhu]",{
            "width":"700px",
            "height":"300px",
            allowFileManager:true, //允许对上传图片进行管理
            "items":["source", "|", "undo", "redo", "|", "preview","|", "justifyleft", "justifycenter", "justifyright", "justifyfull", "insertorderedlist", "insertunorderedlist", "indent", "outdent", "subscript", "superscript", "clearhtml","|","formatblock", "fontname", "fontsize", "|", "forecolor", "hilitecolor", "bold", "italic", "underline","|", "image"]
        });
    });
    //图片上传
    function openFile(){
        return  $("#avatar").click();
    }
    function PreviewImage(imgFile)
    {
        var filextension=imgFile.value.substring(imgFile.value.lastIndexOf("."),imgFile.value.length);
        var o=imgFile.files[0];
        filextension=filextension.toLowerCase();
        if ((filextension!='.jpg')&&(filextension!='.jpeg')&&(filextension!='.png')&&(filextension!='.bmp'))
        {

            imgFile.focus();
        }else if(o.size > 2097152){
            imgFile.focus();
        }
        else
        {
            var path;
            path=window.URL.createObjectURL(imgFile.files[0]);// FF 7.0以上
            $('.ph-user').attr({src:path});
        }
    }
</script>

</body>
</html>
